<!--{template web/header.html}-->

            <div class="block clearfix" id="mainbox">
                <div class="layout_2">
                    <div class="layout_left">
                        <div class="cate_tree">
                            <div class="lib_top">
                                <a class="lib_top" href="{echo $category_list[$root_id]['link']!='' ? $category_list[$root_id]['link'] : APP_URL.'/index.php/'.$category_list[$root_id]['module'].'/'.$category_list[$root_id]['page'].'/cat_id/'.$root_id.$category_list[$root_id]['parameter'].'.shtml'}">
                                    {$category_list[$root_id]['name']}
                                </a>
                            </div>
                            <div class="lib_mid">
                                {loop $category_tree[1]['children'][$root_id]['children'] $k $v}
                                <dl>
                                    <dt{if $cat_id == $k } class="cur"{/if}><a href="{echo $v['link']!='' ? $v['link'] : APP_URL.'/index.php/'.$v['module'].'/'.$v['page'].'/cat_id/'.$k.$v['parameter'].'.shtml'}">{$v['name']}</a></dt>
                                    {loop $v['children'] $l1_id $l1}
                                    <dd{if $cat_id == $l1_id} class="cur"{/if}><a href="{echo $l1['link']!='' ? $l1['link'] : APP_URL.'/index.php/'.$v['module'].'/'.$v['page'].'/cat_id/'.$l1_id.$l1['parameter'].'.shtml'}">{$l1['name']}</a></dd>
                                        {loop $l1['children'] $l2_id $l2}
                                        <dd class="Leve_2{if $cat_id == $l2_id} cur{/if}"><a href="{echo $l2['link']!='' ? $l2['link'] : APP_URL.'/index.php/'.$v['module'].'/'.$v['page'].'/cat_id/'.$l2_id.$l2['parameter'].'.shtml'}">{$l2['name']}</a></dd>
                                        {/loop}
                                    {/loop}
                                </dl>
                                {/loop}
                            </div>
                            <div class="lib_down"></div>
                        </div>
                        <div class="blank"></div>


                        <style type="text/css">
                            /* 左边广告图样式 */
                            .leftadv{}
                        </style>



                        <div class="shop_left_lib" id="history_div">
                            <div class="lib_top">浏览历史</div>
                            <div class="lib_mid" id="history_list">

                            </div>
                        </div>
                        <div class="blank"></div>
                        <script type="text/javascript">
                            if (document.getElementById('history_list').innerHTML.replace(/\s/g,'').length<1)
                            {
                                document.getElementById('history_div').style.display='none';
                            }
                            else
                            {
                                document.getElementById('history_div').style.display='block';
                            }
                            function clear_history()
                            {
                                Ajax.call('user.php', 'act=clear_history',clear_history_Response, 'GET', 'TEXT',1,1);
                            }
                            function clear_history_Response(res)
                            {
                                document.getElementById('history_list').innerHTML = '您已清空最近浏览过的商品';
                            }
                        </script>


                    </div>

                    <div class="layout_right">
                        <style type="text/css">
                            /* 焦点图样式 */
                            #play {float: left; overflow: hidden; border-bottom:2px #970000 solid;}
                            #play_text {width: 200px; margin-top: -5px; float: left;}
                            #play_text ul {position: relative; display: block; padding-top: 1px; list-style-type: none; opacity: 0.8; left: 580px; width: 200px; margin-top: -27px; z-index: 3;}
                            #play_text ul li {display: block; font-size: 9px; padding-top: 3px; float: left; margin: 2px; width: 15px; cursor: pointer; color: rgb(127, 0, 25); font-family: "Arial"; height: 15px; background-color: rgb(255, 255, 255); border: 1px solid rgb(206, 206, 206); text-align: center ! important;}
                            #play_list a {display: block; overflow: hidden;}
                            #play_list img {vertical-align: top !important;}
                        </style>
                        <div class="adv">
                            <a href="{APP_URL}/index.php/product/index/cat_id/1.shtml/test/8" title="商务休闲衬衫"><img src="{ATT_URL}/afficheimg/1272098184677786478.jpg" width="765" height="200" border="0" alt="商务休闲衬衫" /></a>
                        </div>
                        <div class="blank"></div>


                        <div class="filter_lib">
                            <div class="lib_mid">
                                <strong>品牌</strong>
                                <span>全部</span>
                                &nbsp;|&nbsp;<a href="{APP_URL}/index.php/product/index">PATHMAKER</a>
                                 &nbsp;|&nbsp;<a href="{APP_URL}/index.php/product/index">OTHER</a>
                            </div>
                            <div class="lib_mid">
                                <strong>价格</strong>
                                <span>全部</span>
                                &nbsp;|&nbsp;<a href="{APP_URL}/index.php/product/index">50&nbsp;-&nbsp;100</a>
                                &nbsp;|&nbsp;<a href="{APP_URL}/index.php/product/index">100&nbsp;-&nbsp;150</a>
                                &nbsp;|&nbsp;<a href="{APP_URL}/index.php/product/index">150&nbsp;-&nbsp;200</a>
                                &nbsp;|&nbsp;<a href="{APP_URL}/index.php/product/index">250&nbsp;-&nbsp;300</a>
                            </div>
                        </div>
                        <div class="blank"></div>
                        <div class="shop_right_lib_comm">
                            <div class="innerbox goods_list clearfix">
                                <div class="gbox clearfix">
                                    <h3 class="glist">
                                        <form method="GET" class="sort" name="listform">
                                            <div class="f_l">
                                                显示方式：
                                                <a href="javascript:void(0);" onClick=""><img src="{IMG_URL}/web/display_mode_list.gif" alt=""></a>
                                                <a href="javascript:void(0);" onClick=""><img src="{IMG_URL}/web/display_mode_grid_act.gif" alt=""></a>
                                                <a href="javascript:void(0);" onClick=""><img src="{IMG_URL}/web/display_mode_text.gif" alt=""></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            </div>
                                            <div class="f_r">
                                                排序方式：
                                                <a href="{APP_URL}/index.php/product/index/?display=grid&brand=0&price_min=0&price_max=0&filter_attr=0&page=1&sort=goods_id&order=ASC#goods_list" title="按上架时间排序"><img src="{IMG_URL}/web/goods_id_DESC.gif" alt="按上架时间排序"></a>
                                                <a href="{APP_URL}/index.php/product/index/?display=grid&brand=0&price_min=0&price_max=0&filter_attr=0&page=1&sort=shop_price&order=ASC#goods_list" title="按价格排序"><img src="{IMG_URL}/web/shop_price_default.gif" alt="按价格排序"></a>
                                                <a href="{APP_URL}/index.php/product/index/?display=grid&brand=0&price_min=0&price_max=0&filter_attr=0&page=1&sort=last_update&order=DESC#goods_list" title="按更新时间排序"><img src="{IMG_URL}/web/last_update_default.gif" alt="按更新时间排序"></a>
                                                <input type="hidden" name="category" value="5" />
                                                <input type="hidden" name="display" value="grid" id="display" />
                                                <input type="hidden" name="brand" value="0" />
                                                <input type="hidden" name="price_min" value="0" />
                                                <input type="hidden" name="price_max" value="0" />
                                                <input type="hidden" name="filter_attr" value="0" />
                                                <input type="hidden" name="page" value="1" />
                                                <input type="hidden" name="sort" value="goods_id" />
                                                <input type="hidden" name="order" value="DESC" />
                                            </div>
                                        </form>
                                </h3>

                                <form name="compareForm" action="compare.php" method="post" onSubmit="return compareGoods(this);">
                                    <div class="grid2">
                                        {loop $data $k $v}
                                        <div class="goodsItem">
                                            <div class="goodsPic">
                                                <a href="{APP_URL}/index.php/product/detail/product_id/{$v['id']}.shtml" class="preview"><img src="{$v['product_thumb']}" class="zoom" title="{$v['product_name']}|￥{$v['market_price']}元|￥{$v['shop_price']}元|5" /><img src="{$v['product_img']}" alt="{$v['product_name']}" /></a>
                                            </div>
                                            <div class="goodsInfo">
                                                <a href="{APP_URL}/index.php/product/detail/product_id/{$v['id']}.shtml" title="{$v['product_name']}">{echo mb_substr($v['product_name'],0,10,'utf-8')}</a><br />
                                                市场价：<font class="f_market">￥{$v['market_price']}元</font><br />
                                                本店价：<font class="f_shop">￥{$v['shop_price']}元</font><br />
                                            </div>
                                        </div>
                                        {/loop}                                        
                                    </div>
                                </form>
                            </div>
                            <div class="blank"></div>
                        </div>
                    </div>
                    <!--{template web/pager.html}-->
                </div>
            </div>

<!--{template web/footer.html}-->